
var HtmlWebpackPlugin = require('html-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin');
 
module.exports={
    entry:'./src/main.js',
    module:{
        rules:[
            {
                test:/\.vue$/,
                use:[
                    {
                        loader:'vue-loader'
                    }
                    
                ]
            },
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader']
            },
            {
                test: /\.(ttf|woff|eot|svg)$/,
                use: [
                    {
                        loader: 'url-loader',
                       
                    }
                ]
            }
            
        ]
    },
    resolve:{
        extensions:['.vue','.js','.json','*']
    },
    plugins:[
        new VueLoaderPlugin(),
        new HtmlWebpackPlugin({
            template:'./template.html',
            filename:'index.html'
        }) 
      
    ]
}